Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print message if update is unavailable #920

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Aug 23, 2024

No description provided.

lib/foreman_maintain/update_runner.rb Outdated Show resolved Hide resolved
lib/foreman_maintain/cli/update_command.rb Outdated Show resolved Hide resolved
@lpramuk
Copy link

lpramuk commented Aug 29, 2024

Successfully tested.
Applied patch downstream.

# satellite-maintain update run -y -w repositories-validate,repositories-setup,non-rh-packages 
Checking for new version of satellite-maintain...
Nothing to update, can't find new version of satellite-maintain.

This version of satellite-maintain only supports 6.16,
but the installed version of Satellite is 6.15.

Therefore the update command is not available right now.

Please install a version of satellite-maintain that supports 6.15
or perform an upgrade to 6.16 using the upgrade command.

# echo $?
78

So nice wording!

@evgeni evgeni merged commit 28e75a8 into theforeman:master Aug 29, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants